import { PromiseData } from '@/@types/request'
import request from '@/utils/request'
import { IYearList } from '../type'
import {} from '../type/ward'

// 获取所有年份
export const getYears = (): Promise<PromiseData<IYearList[]>> => request.get('/TimeQuarter/searchYear')

// 根据年份获取对应的填报信息
export const getFillingByYear = (data: { dataReportYear: string }): Promise<PromiseData<any>> =>
  request.post('/dataReport/getDataTask', data)

// 申请退回
export const goBack = (data: { id: string }): Promise<PromiseData<any>> => request.post('/dataReport/goBack', data)
